#pragma once
#include "C_PushButton.h"
#include "C_Label.h"

namespace gui
{
	class C_TextButton :
		public gui::C_PushButton
	{
	private:
		C_Label m_capture;
		sf::Color m_over;
		sf::Color m_out;
		sf::Color m_click;
		sf::Color m_press;
	public:
		C_TextButton();
		virtual ~C_TextButton();

		/////////////////////////////////////////////////////////////////////////////////////////
		////////////////	SET GET CAPTURE
		void			setCapture(std::wstring name)	{ m_capture.setText(name); this->setSize(m_capture.size().x, m_capture.size().y); }
		std::wstring	capture()						{ return m_capture.text(); }
		void			setCaptureSize(int size)		{ m_capture.setTextSize(size); }
		int				captureSize(int size)			{ return m_capture.textSize(); }

		/////////////////////////////////////////////////////////////////////////////////
		/////////////////	VIRTUAL FUNCTION

		virtual void renderOver();
		virtual void renderOut();
		virtual void renderPress();
		virtual void renderClick();
	};
}

